// ----------------------------------------
// Filename: Clock.h
// Description: Routines to implement clock
// Author: Anton Jatmiko
// Date: 21 April 2014

#ifndef CLOCK_H
#define	CLOCK_H

#include <xc.h>
#include "types.h"

// ----------------------------------------
// Clock_Init
//
// Initialize clock variables
// Input:
//   clkDAY is a pointer to day
//   clkHR is a pointer to hour
//   clkMIN is a pointer to minute
//   clkSEC is a pointer to second
// Output:
//   none
// Conditions:
//   none
void Clock_Init(UINT8 * const clkDAY, UINT8 * const clkHR, UINT8 * const clkMIN, UINT8 * const clkSEC);

// ----------------------------------------
// Clock_Update
//
// Update clock variables
// Input:
//   clkDAY is a pointer to day
//   clkHR is a pointer to hour
//   clkMIN is a pointer to minute
//   clkSEC is a pointer to second
// Output:
//   none
// Conditions:
//   none
void Clock_Update(UINT8 * const clkDAY, UINT8 * const clkHR, UINT8 * const clkMIN, UINT8 * const clkSEC);

#endif